
@backgoundColor : #b7d4a8;

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font:bold 20px "Courier";
}
#main {
    width: 360px;
    height: 420px;
    background-color: @backgoundColor;
    border: 10px solid black;
    border-radius: 40px;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;


    #stage {
        width: 304px;
        height: 304px;
        border: 2px solid black;
        position: relative;

        // 蛇
        #snake {           

            &>div{
                width: 10px;
                height: 10px;
                border: 1px solid @backgoundColor;
                background-color: black;
                position: absolute;

            }
        }

        // 实物
        #food {
            position: absolute;
            left: 100px;
            top: 40px;
            width: 10px;
            height: 10px;

            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            align-content: space-around;

            &>div{
                width: 4px;
                height: 4px;
                background: black;
                transform: rotate(45deg);

            }
        }

           
    }

    #socre_panle{
        display: flex;
        justify-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 30px;
    }
}